//
//  YYJLSystemMessageCell.m
//  YuanyangJinlou
//
//  Created by mac004 on 2017/1/3.
//  Copyright © 2017年 suli19910309@qq.com. All rights reserved.
//

#import "YYJLSystemMessageCell.h"
@interface YYJLSystemMessageCell()
{
    UILabel * timeLb;//时间
    UIView  * bgView;//背景框
    UILabel * systemTipLb;//系统提示
    UILabel * activityTipLb;//活动提示
    UIImageView * showPic;//
}
@end
@implementation YYJLSystemMessageCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
    }return  self;
}

-(void)creatUI{
    timeLb=[MyControl createLabelWithFrame:CGRectMake(12*PER_WIDTH, 15*PER_HEIGHT, 200*PER_WIDTH, 12*PER_HEIGHT) Font:12 Text:@"2016-12-04 19:08"];
    timeLb.font=[UIFont fontWithName:@"HeLvetica" size:12];
    timeLb.font=[UIFont systemFontOfSize:12*PER_WIDTH];
    [self.contentView addSubview:timeLb];
    //背景框
    bgView=[[UIView alloc]initWithFrame:CGRectMake(timeLb.left, timeLb.bottom, SCREEN_WIDTH-24*PER_WIDTH, 53*PER_HEIGHT)];
    bgView.layer.cornerRadius=10;
    bgView.backgroundColor=UIColorFromHex(0xf2f2f2);
    [self.contentView addSubview:bgView];
    
    
    showPic=[[UIImageView alloc]initWithFrame:CGRectMake(10*PER_WIDTH, 10*PER_WIDTH, 90*PER_WIDTH, 110*PER_WIDTH)];
    showPic.image=[UIImage imageNamed:@"img_huati1"];
    [bgView addSubview:showPic];
    
    //3.话题
    activityTipLb=[MyControl createLabelWithFrame:CGRectMake(showPic.right+10*PER_WIDTH, 30*PER_HEIGHT, 200*PER_WIDTH, 13) Font:13 Text:@"百变珍珠,凝结月神的眼泪"];
    activityTipLb.textColor=BLACK_COLOR;
    [bgView addSubview:activityTipLb];
    
    //系统提示
    systemTipLb=[MyControl createLabelWithFrame:CGRectMake(10*PER_WIDTH, 20*PER_HEIGHT, 260*PER_WIDTH, 13*PER_HEIGHT) Font:13 Text:@"系统提示:你已经被击毙了"];
    [bgView addSubview:systemTipLb];
    systemTipLb.hidden=YES;

    
}
@end
